<div class="breadcrumbs" id="breadcrumbs">
	<script type="text/javascript">
		try {
			ace.settings.check('breadcrumbs', 'fixed')
		} catch (e) {
		}
	</script>

	<ul class="breadcrumb">
		<li><a href="#/security/user/list/0">{{'user'|translate}}</a></li>
		<li class="active">{{'list'|translate}}</li>
	</ul>
</div>
<!-- .breadcrumb -->

<div class="page-content">
	<div class="space-6"></div>
	<div style="padding-left: 29px;">
		<form class="form-inline">
			<div>
				<span class="input-filter input-icon"> <label>{{'loginname'|translate}}
						:</label> <input type="text" class="input-medium input-search"
					ng-model="queryOptions.name"
					placeholder="{{'loginname'|translate}}"
					style="background: url(img/tool/icon_search.png) no-repeat; background-position: 3px 4px; padding-bottom: 1px;" />
				</span> <span style="margin-left: 61px;">
					<button type="button" class="btn btn-default btn-tool btn-fon"
						ng-click="search()" id="search"
						style="background-image: url(img/tool/button_search.png)">{{'search'|translate}}</button>
					<button type="button" class="btn btn-default btn-tool btn-fon"
						ng-click="reset()"
						style="background-image: url(img/tool/icon_reset.png)">{{'reset'|translate}}</button>
					<!-- <button type="button" class="btn btn-default btn-tool btn-fon"
						ng-click="collapsed=!collapsed"
						style="background-image: url(img/tool/icon_more.png); background-position: 5px 8px !important;">{{'moreFilter'|translate}}
					</button> -->
				</span>
			</div>
		</form>
	</div>
	<div class="accordion-style1 panel-group">
		<div class="panel panel-default" style="border: none;">
			<div class="panel-collapse collapse in" id="collapseOne"
				ng-show="collapsed">
				<div class="panel-body"
					style="padding-bottom: 0; padding-top: 0; border: 0;">
					<form class="form-inline">
						
					</form>
				</div>
			</div>
		</div>
	</div>



	<div class="space-6"></div>

	<div class="btn-group" ng-if="config.usePortal=='true'">
		<a class="btn btn-default" href="#/user/add/{{selectItem.id}}"
			ng-disabled="selected()"> <i class="icon-edit"></i>
			{{'edit'|translate}}
		</a>
	</div>
	<div class="row" ng-show="true">
		<div class="col-xs-12">
			<div class="table-responsive">
				<table class="table table-striped table-bordered table-hover"
					colresizeable>
					<thead>
						<tr>
							<th>{{'select'|translate}}</th>
							<th style="width: 10%;">{{'loginname'|translate}}</th>
							<th style="width: 8%;">{{'role'|translate}}</th>
							<th style="width: 8%;">{{'userType'|translate}}</th>
							<th style="width: 8%;">{{'parentUser'|translate}}</th>
							<th style="width: 8%;">{{'userRoles'|translate}}</th>
							<th style="width: 10%;">{{'createTime'|translate}}</th>
							<th style="width: 10%;">{{'lastUpdateTime'|translate}}</th>
							<th style="width: 10%;">{{'lastlogintime'|translate}}</th>
							<th style="width: 8%;">{{'logintimes'|translate}}</th>
							<th style="width: 8%;">{{'operation'|translate}}</th>
						</tr>
					</thead>
					<tbody>
						<tr ng-repeat="item in items" ng-click="selectRow(item)">
							<td>
								<div class="radio">
									<label> <input name="form-field-radio" type="radio"
										ng-value="item" ng-model="$parent.selectItem" class="ace" />
										<span class="lbl"></span>
									</label>
								</div>
							</td>
							<!-- <td ng-bind="item.name" title={{item.name}}></td> -->
							<td title={{item.name}}><a class="blue"
								href="#/security/user/review/{{item.id}}" ng-click="savePageOptions()">{{item.userId}}</a>
							<td ng-bind="item.roleName" title={{item.roleName}}></td>
							<td><span ng-show="item.userType == 'sysadmin'">{{'sysadmin'|translate}}</span>
								<span ng-show="item.userType == 'admin'">{{'admin'|translate}}</span>
								<span ng-show="item.userType == 'user'">{{'generalUser'|translate}}</span>
							</td>
							<td ng-bind="item.parentUserId" title={{item.parentUserId}}></td>
							<td ng-bind="item.role" title={{item.role}}></td>
							<td ng-bind="item.createTime" title={{item.createTime}}></td>
							<td ng-bind="item.updateTime" title={{item.updateTime}}></td>
							<td ng-bind="item.lastLoginTime" title={{item.lastLoginTime}}></td>
							<td ng-bind="item.loginTimes"></td>
							<td>
								<div class="node-operate">
									<div class="node-operate-bar">
										<a class="a_style" ng-show="item.id!=1"
											ng-click="enableUser(item)">{{item.enable?('disableuser'|translate):('enableuser'|translate)}}</a>
										<a class="a_style"
											ng-show="username=='sysadmin' || item.parentUserId==username"
											ng-click="resetPassword(item)">{{'resetPassword'|translate}}</a>
									</div>
									<span style="cursor: pointer; color: #2460A2;"
										ng-show="username=='sysadmin' || username!=item.name">{{'operation'|translate}}</span>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
			<!-- /.table-responsive -->
			<div ng-grid-footer="" class="ng-scope">
				<at-pagination></at-pagination>
				<div class="btn-group">
					<a ng-if="rootPris.security_user_add" class="btn btn-default btn-tool" href="#/security/user/add/0"
						style="background-image: url(img/tool/icon_+.png); background-color: #82af6f;">
						{{'add'|translate}} </a> 
					<a ng-if="rootPris.security_user_edit" class="btn btn-default btn-tool"
						href="#/security/user/add/{{selectItem.id}}" ng-click="savePageOptions()"
						ng-disabled="selected_delete()"
						style="background-image: url(img/tool/icon_edit.png)">
						{{'edit'|translate}} </a>
					<button ng-if="rootPris.security_user_delete" type="button" class="btn btn-default btn-tool"
						ng-click="deleteItem()" ng-disabled="selected_delete()"
						style="background-image: url(img/tool/icon_delete.png)">
						{{'delete'|translate}}</button>
				</div>
			</div>
		</div>
	</div>
</div>